package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName user_people
 */
@TableName(value ="user_people")
@Data
public class UserPeople implements Serializable {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    private Integer peopleId;

    /**
     * 用户名称
     */
    private String peopleName;

    /**
     * 密码
     */
    private String peoplePassword;

    /**
     * 手机号
     */
    private String peoplePhone;

    @TableField(exist = false)
    private String peopleCode;

    /**
     * 账号
     */
    private String peopleRoot;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserPeople other = (UserPeople) that;
        return (this.getPeopleId() == null ? other.getPeopleId() == null : this.getPeopleId().equals(other.getPeopleId()))
            && (this.getPeopleName() == null ? other.getPeopleName() == null : this.getPeopleName().equals(other.getPeopleName()))
            && (this.getPeoplePassword() == null ? other.getPeoplePassword() == null : this.getPeoplePassword().equals(other.getPeoplePassword()))
            && (this.getPeoplePhone() == null ? other.getPeoplePhone() == null : this.getPeoplePhone().equals(other.getPeoplePhone()))
            && (this.getPeopleRoot() == null ? other.getPeopleRoot() == null : this.getPeopleRoot().equals(other.getPeopleRoot()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPeopleId() == null) ? 0 : getPeopleId().hashCode());
        result = prime * result + ((getPeopleName() == null) ? 0 : getPeopleName().hashCode());
        result = prime * result + ((getPeoplePassword() == null) ? 0 : getPeoplePassword().hashCode());
        result = prime * result + ((getPeoplePhone() == null) ? 0 : getPeoplePhone().hashCode());
        result = prime * result + ((getPeopleRoot() == null) ? 0 : getPeopleRoot().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", peopleId=").append(peopleId);
        sb.append(", peopleName=").append(peopleName);
        sb.append(", peoplePassword=").append(peoplePassword);
        sb.append(", peoplePhone=").append(peoplePhone);
        sb.append(", peopleRoot=").append(peopleRoot);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}